package com.hao.shirojwt.util.lock;


import java.util.concurrent.TimeUnit;

public interface Lock {

    Boolean tryLock(String name, long waitTime);

    Boolean tryLock(String name, long waitTime, TimeUnit unit);

    void unlock(String name);

}
